package com.alex.entry;

import com.alex.service.UserService;
import com.alex.util.SpringContextUtil;
import org.springframework.beans.factory.annotation.Autowired;

public class Manager {

    @Autowired
    private UserService userService;

    public void start() {
        userService.hello();

        System.out.println();

        UserService userService2 = (UserService) SpringContextUtil.getBean("userService");
        userService2.hello();
    }
}
